package lembrete.core.backbeans;

import java.io.FileNotFoundException;

import javax.faces.context.FacesContext;
import javax.servlet.ServletContext;

import lembrete.core.exceptions.ExcecaoBD;
import lembrete.facade.Facade;

public class SuperHandler {
	
	Facade facade;
	
	public SuperHandler() throws FileNotFoundException, ExcecaoBD{
		this.facade = new Facade();
		/*FacesContext aFacesContext = FacesContext.getCurrentInstance();
        ServletContext context = (ServletContext)aFacesContext.getExternalContext().getContext();
        String realPath = context.getRealPath("/xml");*/
		this.facade.usarBancoDeDados("teste");
	}

	public Facade getFacade() {
		return facade;
	}
	
	
}
